package com.osard.screen.event;

import java.util.Date;

/**
 * 录制成功时触发，返回视频全路径
 */
public class ScreenRecordSuccessEvent implements BaseScreenRecordEvent {

    private final String videoPathName;
    private final Date startDate;

    public ScreenRecordSuccessEvent(String videoPathName, Date startDate) {
        this.videoPathName = videoPathName;
        this.startDate = startDate;
    }

    /**
     * 录制开始的时间
     */
    public Date getStartDate() {
        return startDate;
    }

    /**
     * 录制文件存放路径，后缀为“.mp4”
     */
    public String getVideoPathName() {
        return videoPathName;
    }
}
